/*
 * Copyright 2017 the original author or authors.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package net.oschina.durcframework.easymybatis;

/**
 * 配置
 * 
 * @author tanghc
 */
public class EasymybatisConfig {

	// 驼峰转换下划线
	private boolean camel2underline = Boolean.TRUE;
	private boolean showXml;

	/**
	 * 驼峰转换下划线，如果配置了true，则java字段映射成数据库字段将自动转成下划线形式
	 * 
	 * @param camel2underline
	 */
	public void setCamel2underline(boolean camel2underline) {
		this.camel2underline = camel2underline;
	}

	/**
	 * 是否执行驼峰转下划线. 如果配置了true，则java字段映射成数据库字段将自动转成下划线形式
	 * 
	 * @return
	 */
	public boolean isCamel2underline() {
		return camel2underline;
	}

	public boolean isShowXml() {
		return showXml;
	}

	/**
	 * 为true时，控制台显示mapper内容，默认false
	 * @param showXml
	 */
	public void setShowXml(boolean showXml) {
		this.showXml = showXml;
	}

}
